package com.mall.seckill.mapper;

import com.mall.entity.bargain.BgOrder;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 秒杀订单映射器
 *
 * @author S
 * @date 2021/07/18
 */
@Mapper
public interface SeckillOrderMapper {

    /**
     * 发现由uid和秒杀商品id
     *
     * @param bgOrder
     * @return null
     */
    void insert(BgOrder bgOrder);

    /**
     * 查询所有订单信息
     * @return List<BgOrder>
     */
    List<BgOrder> findAll();

    void updateStatusById(BgOrder item);

    BgOrder findOne(Long id);
}
